//
//  NSString+Utility.m
//  SecretRoom
//
//  Created by Sitdhibhong Laokok on 9/8/54 BE.
//  Copyright 2554 App Tree. All rights reserved.
//

#import "NSString+Utility.h"

@implementation NSString (NSString_Utility)

- (NSString *)tokenByVanishUnwantedString
{
    NSCharacterSet *unwantedCharactersInDeviceToken = [NSCharacterSet characterSetWithCharactersInString:@"< >"];
    
    return [[[NSString stringWithFormat:@"%@", self] componentsSeparatedByCharactersInSet:unwantedCharactersInDeviceToken] componentsJoinedByString:@""];
}

@end
